package com.nebula.item.pojo.utils;

import java.util.Arrays;
import java.util.List;

/**
 *   常量
 */
public interface CommonConstant {
    /**
     * 用户默认头像
     */
    String USER_DEFAULT_AVATAR = "https://s1.ax1x.com/2018/05/19/CcdVQP.png";

    /**
     * 用户正常状态
     */
    Integer USER_STATUS_NORMAL = 0;

    /**
     * 用户禁用状态
     */
    Integer USER_STATUS_LOCK = -1;

    /**
     * 普通用户
     */
    Integer USER_TYPE_NORMAL = 0;

    /**
     * 管理员
     */
    Integer USER_TYPE_ADMIN = 1;

    /**
     * 默认用户密码
     */
    String USER_DEFAULT_PASSWORD = "123456";

    /**
     * 从JWT获取用户的信息
     */
    String DOCTOR_INFO = "doctorInfo";

    /**
     * 性别男
     */
    Integer SEX_MAN = 1;
    String GENDER_MAN = "男";
    /**
     * 性别女
     */
    Integer SEX_WOMAN = 2;
    String GENDER_WOMAN= "女";
    /**
     * 性别保密
     */
    Integer SEX_SECRET = 3;
    /**
     * 城、镇、乡
     */
    String STR_ADDRESS_CITY = "城";
    String ADDRESS_CITY = "1";
    String STR_ADDRESS_TOWN = "镇";
    String ADDRESS_TOWN = "2";
    String STR_ADDRESS_RURAL = "乡";
    String ADDRESS_RURAL = "3";

    String STR_BIRTH_PLACE_CITY = "本市";
    String BIRTH_PLACE_CITY = "1";
    String STR_BIRTH_PLACE_RESIDE = "常住";
    String BIRTH_PLACE_RESIDE = "2";

    /**
     * 正常状态
     */
    Integer STATUS_NORMAL = 0;

    /**
     * 禁用状态
     */
    Integer STATUS_DISABLE = -1;

    /**
     * 删除标志
     */
    Integer DEL_FLAG = 1;

    /**
     * 页面类型权限
     */
    Integer PERMISSION_PAGE = 0;

    /**
     * 操作类型权限
     */
    Integer PERMISSION_OPERATION = 1;

    /**
     * 1级菜单
     */
    String PARENT_ID = "0";

    /**
     * 1级菜单
     */
    Integer LEVEL_ONE = 1;

    /**
     * 2级菜单
     */
    Integer LEVEL_TWO = 2;

    /**
     * 3级菜单
     */
    Integer LEVEL_THREE = 3;
    /**
     * 默认当前页
     */
    Integer CURRENT_PAGE = 1;
    /**
     * 每页条数
     */
    Integer PAGE_SIZE = 10;

    /**
     * 默认注册角色标识
     */
    Integer DEFAULT_ROLE = 1;

    /**
     * 日志操作类型
     */
    int LOG_TYPE_LOGIN = 1;

    int LOG_TYPE_OPERATE = 2;

    /**
     * 手机验证码登录方式
     */
    Integer LOGIN_WAY_TEL = 1;
    /**
     * 用户名密码方式
     */
    Integer LOGIN_WAY_USER = 2;
    /**
     * 登录状态
     */
    Integer LOGIN_FLAG = 1;
    /**
     * 默认非登录状态
     */
    Integer LOGIN_DEFAULT = 0;

    /**
     * 图片BASE64 头
     */
    String BASE64_IMAGE = "data:image/jpeg;base64,";

    /**
     * EXCEL_CONTENT_TYPE
     */
    List<String> EXCEL_CONTENT_TYPE = Arrays.asList("application/vnd.ms-excel","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet");

    /**
     * 二维码宽高
     */
    Integer QR_CODE_WIDTH = 300;
    Integer QR_CODE_HEIGHT = 300;
    /**
     * 文件上传类型
     */
    String UPLOAD_TYPE_IMAGE = "image";
    String UPLOAD_TYPE_VIDEO = "video";
    String UPLOAD_TYPE_AUDIO = "audio";
    String UPLOAD_TYPE_AVATAR = "avatar";

    //存为草稿
    Integer COURSE_STATUS_DRAFT = 0;
    //保存
    Integer COURSE_STATUS_SAVE = 1;
    //保存并发布
    Integer COURSE_STATUS_PUSH = 2;

    /**
     * 消息发送标识
     */
    Integer FROM_TO_DOCTOR = 1;
    Integer FROM_TO_RESIDENT = 2;

    String ROLE_TAG_DOCTOR_COMMUNITY = "ROLE_DOCTOR_COMMUNITY";

    Integer IS_RESIDENT = 1;
    Integer NOT_RESIDENT = 0;


}
